package com.xyBlogAutoTest.Common;

import org.openqa.selenium.edge.EdgeDriver;

import java.time.Duration;

public class AutoTestUtils {
    public static EdgeDriver edgeDriver;
    public static EdgeDriver getDriver(){
        if(edgeDriver == null){
            edgeDriver = new EdgeDriver();
            edgeDriver.manage().timeouts().implicitlyWait(Duration.ofSeconds(10));//创建隐式等待
        }
        return  edgeDriver;
    }
}
